<div class="search-content" data-num="<?php echo $count_goods;?>">
		<div class="sort">
			<li class="first"><a title="综合">综合排序</a></li>
			<li><a title="销量">销量排序</a></li>
			<li><a title="价格">价格优先</a></li>
			<li class="big"><a title="评价" href="#">评价为主</a></li>
		</div>
		<div class="clear"></div>

		<ul class="am-avg-sm-2 am-avg-md-3 am-avg-lg-4 boxes">
			<?php foreach ($goods as $k => $v):?>
					<?php
						$imgs = explode(',',$v['goods_img']);
						$good_imgfile = pathinfo($imgs[0]);
						$filename =$good_imgfile["filename"].'_thumb'.'.';
						$img_name =$filename.$good_imgfile["extension"];
					
					?>
					<li>
						<a href="<?php echo base_url(),'goods/index?id=',$v['goods_id'];?>">
							<div class="i-pic limit">
								<img src="<?php echo base_url(),'public/uploads/goods_thumb/',$img_name;?>" />											
								<p class="title fl"><?php echo $v['goods_name'];?></p>
								<p class="price fl">
									<b>¥</b>
									<strong><?php echo $v['shop_price'];?></strong>
								</p>
								<p class="number fl">
									销量<span><?php echo $v['sales_num'];?></span>
								</p>
							</div>
						</a>
					</li>
			<?php endforeach;?> 
		</ul>
	</div>
	
	
	<!--精品推荐start-->
	<?php $this->load->view('public/recommend.html');?>
	<!--精品推荐end-->
	
	<div class="clear"></div>
	<!--分页 -->

	<ul class="am-pagination am-pagination-right">
				<?php echo $page;?>
</ul>
	



